This function doesn't seem to fit the style of the rest of the code. The formatting is much different.

Either way, I'm not sure we want to do this right in the test. I'd prefer to manually create the sparse arrays -- it won't take much code and will keep us from having to maintain this utility here.