Detained Myanmar president Win Myint testifies in military court