Fix test scenario to support multiple OS