test: make realpath tests case-insensntive on win

Just ran in to this on Windows when running manually.

`process.cwd()`, which is used in lots of the tests, may return a different value than what realpath will return even though they are the same path when compared case-insensntive.