cpp: fix spurious namespace generation in class in a package test