Fix failing test wrt to chdir sensitivity

But it feels to me the wrong things are being tested here.