Fix Collection::get_next_card(). Add unit tests.