Entity unit tests