Updates test to include type and shape testing for sparse arrays