The test must be passed within 6 months from the date of the aliens registration at the national register, or if the alien has already obtained a residence permit in this country, from the notification of residence permit granted pursuant to the Aliens Act section 9(1)(1).