adding tests for the permissions service
fixes bug 1104783 - last permission should remove user
Merge pull request #3 from peterbe/bug-1104783-last-permission-should-remove-user

Bug 1104783 last permission should remove user