added tested for registration correctness