working entities and unit tests