added CardTest class