Adding missing tests for constraints
Update and add tests for validateRule method of rule validator