Add more functions and tests for Table and Deck