adds more tests, fixes errors where a logged in user is required