Added tests for Entity model.