Test that authentication is required
Improve assert calls

* use strictEqual instead of equal
* use ifError for erros
* Actual value is first, expected second