Add folding panel and fold detector to the editor used for the test suite.

(this should already raise the coverage quite a lot)