[#67041100] Test attaching an image to a feed item

Also includes fixing tests and the database cleaner