Added some tests for ReplaceNth.