Added NodeList#reverse() as a function similar to NodeList#sort()
Added this to the NodeList unit tests and cleaned up the unit test code a little too