Entity tests.