Move TEntity into tehTesting

Also added support for custom entity subclasses and custom spawners