tests for #format