Fix a test in Ruby 2+

As discussed in http://tenderlovemaking.com/2012/09/07/protected-methods-and-ruby-2-0.html,
respond_to? returns false for protected methods from Ruby 2.0 onwards