Fix method redefinition warning

test_defined? gets defined in the method_added hook.