added unit tests for the entity structs