Fix tests to run and pass on windows

Fix console/Request.php to be able to run tests from console on windows and fix a couple other tests that fail on windows.