Fix event tests for Python 3.4

Change-Id: Idec7e84fcc168df707e89042831ae8f1afb2067c
Partial-Bug: #1384511