Supermarket simulation for TDD purposes with Mocha, Sinon