More unit tests for register process

Change-Id: I9091e99b2ab2b39a89f86c6dcb05b3aa1c92b94d