It looks like in some cases (apparently mostly on Windows) a previous sub test sometimes leaves some unconfirmed balance in the wallet. That balance is confirmed in the next test when new coins are sent to the wallet.