Adapted error message checks in regression test for issue 2.