fixed tests after merging delete post and securtiy update