fix KEvent
fix
add time machine test
fix kevent to trace method