create factory for posts, make test for post controller