Fix some unit tests with destdir handling.