Editor tests

This PR fixes `mvn clean install`. 

The most important changes are separated in commits to facilitate revision. An additional "bigger" commit is placed at the end with less important changes.

Once this PR is merged, I propose clearing any other pending PR requests and merging to master asap.