start of api post request unit tests