Added Test for entity model
Added constructor for allowedEntity
Added getter for entityId