fix compilation of sparse tests
4 files changed