Java (base) exercices with JUnit testing