Added test for objectUnderConstraint