mock current user for test and add tests for logged out behavior