CREATE TABLE table_name_40 (races VARCHAR, series VARCHAR, poles VARCHAR)

What race was there in the formula one series when there was a test driver?
SELECT races FROM table_name_40 WHERE series = "formula one" AND poles = "test driver"
SELECT "races" FROM "table_name_40" WHERE "formula one" = "series" AND "poles" = "test driver"