Write pending tests.

Working on adding missing tests. Added tests for:

- inviting a user to a topic
- update user
- update username
- update email