Tests added

Added unit tests around usermanagement.py