for testing class