Fixed #32: mongo metadata no longer pops errors in finally.  fixed integration test that was not checking right context