fix broken tests around `pip.locations`.