Fix inappropriate use of anonymous namespaces in unittests.