Created unit test for CardController