Introduce JUnit tests