Implementation of daniel-trinh/scalariform#12.

Fix test formation glitches.
Add test for class annotation.