Added card applet code and test class stub