Fix test on linux platforms