Added test to ensure that A[B>6] works for A sparse matrix and B matrix