Tests for createlink bugs

Inserting link currently *fails* reliably on `BROWSER_NAME='firefox' BROWSER_VERSION='29' PLATFORM='WINDOWS' ` 
I don't like using return to escape from functions early. I would prefer if the other branch was placed in the `if...else` statement.