tests: check bson_append_*() return value.