India wins its first cricket Test in South Africa