Fetch test data only when BUILD_TESTING is ON

Change-Id: I654bcbf70e1e38a502fe19cb7c551d2acc2a2ba3
Merge topic 'no-test-no-data' into master

f9784d15 Fetch test data only when BUILD_TESTING is ON