Constraint test for 1 and 7