Move unit test into anonymous namespace as per convention.