3.1.0: Can't find nearly inserted record by unique field within transaction

The new version (3.1.0) ruins our unit tests.
I filed issue on github:

This is not the first problem with unique indexes. My previous problem is also related to the unique index and not yet resolved.

Andrey, great job. Waiting for release to try fixes.