unit tests to indicate redirect for logged in user