Added test for cwd fix (And fixed the ordering of test comparisons to match the "actual" and "expected" values expected by `test.deepEqual`)