Implemented polynomial default formatter and tests.