Adds unit test for some core/cards.py function.
Adds unit test for some core/cards.py function.

Mainly for education & training purposes, but will be nice for refactoring.

JackieChiles/Cinch,JackieChiles/Cinch,JackieChiles/Cinch