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