more test stubs and a fix for post data