Fix test covering pip 1.5.2 error handling.