expect -> expectResult deprecation fix