Test pattern with comparison