Unit tests: fix compilation on x86_64

Hope I am not wrong -- not tested.

Relates NEMO#701