Deck Factory and simple unit tests