The attached file contains my attempt to update lib.alg.replace test and port it to new test driver. This test contains implementations of ToString and EqualityPredicate classes similar to the implementations which were in the test for the remove algorithm. So I suppose move them to alg_test.h and reuse in both tests. Martin, what do you think about it? With best wishes, Anton Pevtsov.