TestDealTakesTheStakeAndHidesTheHoleCard checked for a 900 stack straight after a 100 bet, and only afterwards looked at whether the hand had already settled. A dealt natural settles inside the deal, so the stake is back (with the win, or as a push) before the test looks, and it failed whenever the shoe handed out a blackjack. It now checks for a settled natural first and, if it finds one, only asks that the stack didn't lose more than the bet.