throw exception if market file not found or invalid
update test-market script