Fixed functional tests under linux