Former State Rep. Todd Courser ordered to undergo competency exam