add a mocha test for insertCards