Unit tests: fix compilation with check < 0.9.9

Relates NEMO#701