Allow checks to depend on each other

This reduces code duplication and makes it easier to
create test suites with multiple checks.