OPDS: refactored unit test and fixed a minor bug with undefined image_rel

I think it makes a little more sense this way. The specific issues and fixes for #943 and #1259 are now checked against breaking in the future.