Add CardError test.