mocha reference error?