TST: fix sparse test errors due to axis=-1,-2 usage in np.matrix.sum().

Negative axis arguments are not supported by numpy < 1.7.0.
Fixes part of gh-3330.