Added a few tests, and comments.

I was not really sure where to start, so I done some simple things.
All unit tests (which don't require a database) should be in the `fast` group.