Fixed issue with delegated proxies not matching the user DN. Test added