[refactored] changed replace user test to fit for new API
[task] added test class to check exception messages
Merge pull request #95 from davidmoebius/OSNG-319

Osng 319