Add spec for all_users and fix bug