Implemented Card class and added some basic tests for it.