testing practice with CHAI and Mocha