WalletTest: Better unit test failure message to check if the test is flaky.