wrote a register test