Fix tests on Mac OSX, issue with spyOn(fs, 'existsSync') not being checked on Windows but on other OS.