Added CardContainerTest and fixed CardContainer.cc