wrote tests for entity classes