PHOT-23: collection and image entity with dao test and relations