Disallow network calls in specs.
Add error catch in authenticate method.