Added some unit tests for entity classes.