[PATCH v8 5/8] platform: Add test managed platform_device/driver APIs