fix type in class_method test