fixes to run functional tests in linux