LPS-29962 Fix tests

It shouldn't be necessary to add the line to retrieve the assetEntries, but @sergiogonzalez and @migue have spent a few hours debugging with hibernate and spring sources to find out the reasons, but they have not able to determine why is needed.