Added tests for async read/write