added tests for formatting