BUG: fix test to use sparse array