added test "invocation: with string error" to check behaviour when an error string is returned to endpoint.