test with sparse arrays