ported ticket tests over to mocha