Use non-blocking syswrite for unit test