Fix tests for sparse module