Fix the tearDown in integration tests (#37)