remove duplicate test, remove ordering assumption from test requirements
make tests compatible with java 8 by not assuming order of results
more changes to make tests not assume traversal order