Implement select command

- implement tee_se_channel_select()
- add more testcases
- minor bug fix