fix card manager tests