test the register