updated testing to have response type passed down for more stringent testing of response status codes