Add formatting tests
Merge pull request #1 from ncoghlan/formatting_tests

Add formatting tests