tests: check return value from bson_append_*().