added tests for template class impl