Modified tests to fix breaks caused by changes in prod

We are having to pause between two clicks that are running javascript,
which is a little odd.

Had to add an ssl-protocol option to the phantomjs options.