passing code for all but rw test