Add author to post, refactor tests