Add Constraint related tests.