MinorTestfixes

Fixed test bug related to register new user.
Merge pull request #889 from bhuvak/Bug-821

MinorTestfixes