example of mocha testing using a playing card example