add some unit test cases for WiflyControl