Mongodb hacks and test

For testing zend compatibility bugs.