fix tests, broken on some environments