unit tests: Test dependency resolution using validate()

It doesn't really matter what triggers the error, we just want to check
that it happens during validation.

Change-Id: Ibfed738683973d35413b15bc9f173a51558c368c
Merge "unit tests: Test dependency resolution using validate()"