Fix failed appclient test & jmx tests