knows when called from mocha