Add test for member functions of template classes.