better JUnit tests
auxiliary class implementing UF