Fix test failure on linux