Legislation done to make thalassemia test mandatory before marriage, says minister