Fixing test code so windows initialize properly.