this seems to fix this test when it is executed with other tests. maybe we should do this after each test automatically?