Great that you check that the user is logged in here.  You should also add a test for it.