Testing adding an object's method as handler.