Added tests/but broke main views when logged out TODO