Add helper method to ClassNode for safely removing a method.  Tidy up test.