test for #770, fixed error message