Added tests to check for notLoggedIn and Non-admin access to admin functions