Fix insert logic and add a test. EOM

Insert logic wasn't quite right. If you had an active region and called `google-lucky-and-insert-url` it wouldn't replace the region.