SERVER-13635 Enclose validate() tests in anonymous namespace.

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>