Fixed functional test on linux