Test fixes on WaitEvent(), WaitEventTimeout(), PushEvent(), and PeepEvents

Signed-off-by: Jacky Boen <aqiank@gmail.com>