Change directory before running test.