Added test for the edit post page, added docstrings to tests, and
updated comments.