Add test for entity validation and pass all other tests