Affected unit tests load testdata from the srcdir. Previously, there was a kludge that chdir()ed to the tests srcdir, but that get removed during refactoring. Instead of introducing the kludge again, the paths were fixed to be properly prefixed with TESTS_DIR as needed.