added test for logging off behavior

this should really be extracted into a service instead of a controller.
as I'm learning more about angularjs, I'm realizing that I've got this
setup wrong.