added test for entities