cpp: test: Remove unnecessary use of typename