TST: harmonize testing namespace in TestCase (GH8023)

closes #8023