Updated anonymous tests

Added custom Jasmine matcher to easily verify the keys within a JavaScript object (in this case, a user auth payload).
I added a comment explaining the catch. The timeout threw me off for a while as I didn't see the other error also being logged. Failing immediately is easier to debug in my opinion. If these expectations were inside the actual `it` test itself, they would fail the test immediately and I would like to keep that same behavior in this helper function. I'll see if there is a Jasmine way to do this without having the catch.

Side note, the timeout is set to five seconds because most tests are round-tripping to our auth server. Reducing the timeout may have the unintended effect of false negative tests which I would like to avoid.