How to efficient make unittests?

It might be easier to understand with a prototype:

https://NW7T4CHXKJICCX4R.anvilapp.net/IGTVGPVDUWVTDECZ2LQLSMJ5