Added test for post requests