created and tested PostsController