fixed typo in card class
updated test code