file unittests

I can fix until you do LGTM.
Thanks~!

Result is below.
![image](https://f.cloud.github.com/assets/756988/1650493/ca573388-5a92-11e3-866f-82e75e8b5315.png)