Silly me.  Restore the cwd AFTER we run the test.