add test for post requests