When you are going to stay more than 6 months, you need the test.
You cannot take the test voluntarily, you only can take the test when you are asked to do so by the embassy.
You have to take the test only from the designated centers.
see the link-...