Fixes bug for dynamically creating users form an event, added proper unit test to ensure the functionality of the feature