Make test resistant to DOM resorting, as in Firefox