Entity unit tests.