rgw_formats: syntax fixes
test: avoid close as assert is called