Add TestIO run configuration
Small refactorings (including Java 8 lambdas)