add tests for new format directive