Make auth failure status code configurable
Adding PhantomJS in the test app