added test for POST /posts/new route