Fixes some tests on java.util.TreeMap. Fixes tests code style