Add test utility.
Add blocking read/write functions.