Then in the upper-most, left-most cell in your range -- we'll assume it's A1 here -- enter:
=IF(AND($D$10="Test",A1="")
in your data validation, then
click on cell A1 and click copy
highlight the rest of the range and click Edit | Paste special, select Validation.