This is an example of setup for functional testing
with Mocha, Selenium and PhantomJS.