Another attempt to fix broken test.

The problem is due to an interaction between a directory change (chdir),
the coverage report generation, and a directory tree comparison
assertion.