Added testing to CardRulesHandler.