Update dot tests
The order of elements in a list is not the same between java 7 and java 8, these tests failed for this reason on java 8 but not on java 7. The updated test don't assume any particular order of the elements, instead it uses the find* methods to reference elements.