Add test for read syscall

This test is mainly around so that we can make sure we don't
go into an infinite loop when reading our own events
Don't flush events if we don't have line debugging on

This results in confusing output