Maybe the cause for the randomly failing tests on travis is that the mongodb indexes are created in the background. Since the models+indexes are recreated for every single test, it's likely that the lookup by id fails if it's issued directly after insertion.
Possible solution: disable background indexes for the tests.