TreeMap replaced with LinkedHashMap.
Test case uses LinkedHashMap.
TreeMap changed to LinkedHashMap.