Togo are through to the African Cup of Nations quarter-finals after a controversial 1-1 draw with Tunisia in their Group D encounter in Nelspruit.