fixed tests that assumed a fixed iteration order in hashmaps

Some tests randomly failed since Go 1.3. More info here: https://golang.org/doc/go1.3#map