Fix the X.event tests to use the new API.