added utility method to test classes at runtime