post request test and better error propagation