Add checkDevice function

TODO: add some check mechanism for input args..
	modified:   zbTest.c
	modified:   zbinterface.c