added read until empty after blocking write test, OK