Fix test failing on exception error message