Added tests and model method to check if still logged in
Added resource tests for isLoggedIn