Refactor finding decks by ID and adds test for it