Verifying format of the DRY unittests

This is a commit just to get people's reaction on the format of the unittests. This code needs to be cleaned up and commented out. Also probably needs some unittests of it's own.
I'm not entirely happy with the difference between valid and invalid tests. I don't like that invalid is an object, I think it should be an array of objects.
Thoughs? Once everyone is happy with the format, I can start converting all the rest of the unittests, as well as wiring up mocha and grunt into Travis.