Former military commander testifies against South Korea's ousted president