(Finally) passing mocha tests