Cast collections to LinkedHashSet, ArrayList and HashMap to comply with collections unit tests