fixed tests that didnt pass in AbstractEntityTest