SERVER-13635 Enclose validate() tests in anonymous namespace

https://jira.mongodb.org/browse/SERVER-13635