Refactor tests for reproducibility.

Drop MongoDB before and after tests.