Fix issue with PATH in test environment