Added test for adding a method accepting a closure