Add http agent with units tests