Added test for custom function objects for register member functions