fix register test