Add unit tests for the context object (where the meat is) and fixes
found for things in the process. Also, actually verify get-logins
calls.