refactor(tests): use PhantomJS to run tests
refactor(mock): use negative regexp to pass through non api calls