Fix test for overload registration with add_class utility