Fix checking for get/post, add post test