Check that no replacement is done when no hashref is passed