Fix error in test about error message