fix and add test for #respond_to? in Resource