In the US I hear people saying "I took a test" more often than "I did a test". Usually when someone says that "they took a test" it either means that they had their abilities tested by someone else or they had something of theirs tested such as their blood at a hospital for example, and usually when someone says "I did a test" they're talking about something they tested themselves like a car, a computer, or a video game, for example "I did a test with the car". I was wondering whether or not you could use both words interchangeably for any type of test you do yourself or take by someone else, such as in the example phrases below:
I took a blood test at the hospital.
I did a blood test at the hospital.
I took a math test in school.
I did a math test in school.