Add spec test to check the platform specific collect_data check.