added tests for template class method code generation impl