changed response code to int, added test for echostr