Add test for writing and reading a post