test reponse type and payload