make test crashes more noticeable from normal completion
fix readable() and writable() checks as per suggestion
implement TODOs in write()
close #46