create unittest module, and any bug fixed