Port tests to Junit

Issue #222 resolved
Benjamin Cordes created an issue

JUnit framework is there. Most tests should be moved to Junit framework. Some JUnit tests exist, but not all tests are ported.

Tests that are manual go into a separate package e.g. manualtests.