refactored and added test for get member and user ids