Fix test cases to pass on Unix like OS.