Added testing of formatters
This caused a bunch of errors in the formatters, which were fixed.