Windows CI test failure fixes

A unit test and functional test were failing at every execution. The unit test failure was most likely due to copying and pasting a test from other source code. The functional test failure was probably due to having a file system configuration on the machine on which this was originally tested and committed, but on build and other machines this configuration is not present.

Both failures could have been caught by running CI against a branch before merging changes to master.