Added test for new post method.