added test "DoRegister" function