Add test for code format toolbar button.
Remove unnecessary code.
Remove unused testing templates and unused tabs.