test classes more efficiently