Mocha states example