Add an integration test.  requires a couple tricks to pass in phantomjs