More integration tests for mongo and pg.

- Test that checkout/update continues after an import
- Add metadata verification to mongo tests