Test API hooks with empty post requests, bugfixes