Add tests for posts