MULE-6613: Improving test case and fixing issue with HttpProxy