Save working directory of last test

In case the working directory of the view is
no longer the test's directory, change to that directory
so the test executes properly.