Add test cases for hdsdiscovery and poll_switch

Change-Id: I04dec54881feefb8c127705f4ed59e950fc9ba23
Merge "Add test cases for hdsdiscovery and poll_switch"