add test for users_med between scope