Test refactoring work; trade out wru for nodeunit.

Converted the rest of the tests to nodeunit. Tests with multiple values are now broken up and run as one test per value as required by nodeunit. Fixed a few tests that were broken. Standardised fixture structure in some places to make it easier to abstract commonality.