fixed errors when dropping entity_test table