using mocha to get pairs worked out