Clean up test directory after test run.

This should make the test from #79 more robust, as described in #84.