Fixed UsersProject.in_projects

I discovered while trying to use UserTeam#remove_member() that
UsersProject.in_projects was broken.  So I wrote test cases to test what
I was trying to do and fixed the underlying problem.
Merge pull request #3406 from docwhat/in_projects

Fixed UsersProject.in_projects