test for template class virtual