Updated some tests to handle different environments, added AppVeyor badge to readme.