realize the "Card Test" and "eCash" function