tests: fix compilation of tests with clang (closes #275)