recursive check for mocha tests