Added tests for formatting