Unit tests: fix generation of values