cache classes in test