2 reasons
1. I wanted to make sure the cd was successful (the exit makes this irrelevant)
2. output_dir is a temporary directory where some files will be created (such as the html output from curl). All tests are run from this directory so I am just changing to the directory before starting the test