add tests for urls and move phantom driver to before/after hooks