add test for getting POST data