register test working