Tests for CommentFormatter and ConfigAddEditDisplay. Adjusted these classes in light of the tests.