t6050-replace: make failing editor test more robust