Taiwan prepares to elect a president and legislature in what's seen as a test of control with China