Also assign first_image / first_richtext in the detail view, and add a few tests