test written for post command