read/write registers test