Revert "cache classes in test environment"

This reverts commit 1450d66e31c3bdcb123d463c4e6f7eb313dd72d5.