Tests for Entity class