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

Signed-off-by: Jacky Boen <aqiank@gmail.com>
Added tests for WaitEvent and WaitEventTimeout