Updated anonymous tests

Added custom Jasmine matcher to easily verify the keys within a JavaScript object (in this case, a user auth payload).
Will that not just throw another exception, causing the original problem again? :-)