Add class template to topcoder boilerplating and adapt tests to be able to handle both method and class boilerplates