Testing for valid class in RequestHandler