Added ClientRegisterTest

And some corrections to the methods