Added test to create and update status only when user is logged in