discover: Add test_data member to struct discover_context