order/ added a test on register function when registration is completed