added tests for the entity class and improved some of the manager tests