Performance tweak, updated basic sparse test