Port helpers test case to mocha.