fix create user bug
unit tests and clan fix