Fix test broken by 'Differentiate an invalid project error from other errors'