Added test for Entity.