Added unit tests for sparse array