Unit tests: fix compilation with check < 0.9.9

Relates NEMO#701
Merge pull request #88 from martyone/ut

Unit tests: fix compilation with check < 0.9.9