tests: check return value of bson_append_*() functions.