Added tests for ObjectIsSavedConstraint.

Associated commit DatabaseObjects:
2c915e722aeaba0693cdc57c73b0a04e82695000