Adds template class for test cases.