Add tests for cbSelectReplace