Added tests for permissions when logged in and logged out, and also addedtests for statuses