Issue #1273478 by BTMash, Alan Evans, kathyh: Allow tests to declare 'requirements'; fail tests where requirements are not met.