Added Validation Support &  validation tests for entities