added few test of some sub function