WIP commit, started working on test for deleting posts. Refactored some of the common tasks