Stabilize test suite

The test suite has been unstable lately because of some updates on dependencies. This stabilizes it.