add "user_activity" functions and tests