Converting unittests to mocha

More unittest conversions. We are up to ~72% coverage. 23 rules to go.