JUnit tests (intermediate result)