Fix PATH issues with tests.