read, write tests added