Add lastresponse test handler for connectionhandler