convert tests from JUnit3 to JUnit4

* JUnit3 is quite old and should be replaced by JUnit4 (or maybe even spock)
* for now touching all tests that directly inherit from junit.framework.TestCase
* tests with other base classes may follow