more small fixes
ported ticket tests over to mocha
wut wut?