Major refactoring of the test suite

We are now using fixtures and decorators a lot. Also there is only one editor/application created now. This feels a lot cleaner (from the code pov and from the test that look the test pov)