test for entities API