Fixed test for view creation with different entity types