What's most likely happening is these transactions get committed before we're able to check if they're in pending, so the test is failing.
A todo here would be to change this to pass on tx commited OR in pending list.
Originally posted by @vladjdk in #856 (comment)