Fix a few windows-isms and mstest/nunit differences in the unit tests.