Fixed unit tests for non-linux systems