updated test, fixed issues with post and put when no data is sent