Add code coverage in resource list test

To cover the situation when resource has no resource name attribute.

Change-Id: Ifa5f20fbbd2385f5f71d53ecc1cff11d3935db04
Merge "Add code coverage in resource list test"