Fix tests on Maven.

Use absolute paths so that the tests work regardless of the
directory from which they are started.