Added an extra test to make sure that only members of projects can see the project listed.
Removed some outdated TODO comments.
Started to implement mail sending tests. A fake SMTP server is started and can be used to check if the correct message is received. Tests are not fully implemented yet.