add switchKey and sitch test