organization_list_for_user() fixes

1. Fix a bug in `organization_list_for_user()` that it was returning organizations that the user was previously a member of, instead of just the current ones

2. Add a docstring to `organization_list_for_user()` that explains what it does

3. Add tests for `organization_list_for_user()` (it currently doesn't have any, either new or legacy)