NEW test for replace when using provide