Fix test for remove_card_if