In fact, I tried to write a unittest module before I sent the patchset.
But I found I need a deeper understand to unittest module, so I will work on it later. :)