Add unit tests for Entity\AbstractEntity