Issue #2004224 by Berdir, andypost: Convert tests using TestEntity to EntityTest (except Field API tests).