fixed tests and compilation on linux