Convert agent testing to httpretty

Change-Id: Ifd598c3b2d4c26b3557349046822a8ab2108aca7
blueprint: httpretty-testing