Tests of label extraction with JUnit