Added 'noreplace' merge mode and corresponding test cases