fix tests that fail on linux