changed a test to not fail under certain circumstances and runtests.bat to run tests more reliably from cmd line