added more tests for EntityDatabase