add test with sparse data