Converting to Mocha Unit Tests