Fix test for path errors.