Adds more tests REST api for constraint handling

o StmCtx.getConstraints()
o Creating the same constraint twice is a ConstraintViolation