fixes up the double member creation in the createuser method
Fixes up the unit tests