Fix test on registration