rw some test codes