resourceloader: Add unit test to ensure absence of illegal dependencies

Loading these can cause side-effects and is just redundant in
general.

Change-Id: Ic8b4ed45d4d42172a456cc5eaf314c41e4e6fd18
Merge "resourceloader: Add unit test to ensure absence of illegal dependencies"