Make event proxy test more robust