Adds unit tests for format string logic.