complete testwritev.cpp and testreadv.cpp