Fixed tests for version and agent to work on windows