Fixed feature test for editing posts and updated security for nil user