Add test case for registration watchers

For pull request: esl/MongooseIM#213