fix remote-test functionality for windows