Fix bug with RSS generation.

Also better tests for RSS generation.