SA education system fails global test