Laying the Test Foundation

Added some basic tests for mongo and cache.