entity system: add entity class
entity system: add tests for entity class