Port loading tests of web page.

https://github.com/ariya/phantomjs/issues/12439