Add tests for constraint schema check