Added unit tests for Entities and Models.