fix template class superclass renaming
remove trailing spaces
[TEST] derived_template renaming test