add tests to_record selection and improve it

Created by  Tomáš Zemanovič  on October 31, 2025
5O4FWCFP4ZPAS7WKSYPHN76ML3O2S4JUOYWOV2ETD4TF2H6KZ6AQC
Change contents