BS-9856 Fix test about error message comparison