Test spqr with partition