Gettings tests integrated. Fixed bug in cards.cardType() where not calling trim(). Also, need to check typeof is string in cardType(). Finally, added check if trim() exists, if not, create it (support of old i.e. versions).