Added extended Test For registration
Refactored Code added RandomUitls