Add reservoirSampleAlgebraicTest