added some tests

Not sure if you wanted to run tests with nodeunit but I started something for my own sanity.  Let me know if you like this style.  The last test fails, probably because I don't understand how to use the rules right.  If you know what the problem is there please let me know, thanks!