escrow can be cached for test marketplaces so it's possible to have a race condition where the escrow is not updated in time, it's usually only a second or two at the most but this can raise its head in testing where you're doing operations one after the other. i usually recommend that you just try the credit instead since Balanced will recalculate the escrow during write operations.