test can read or write depending on comments