file unittest

Please review this!

TEST=./grind tests
![image](https://f.cloud.github.com/assets/756988/1650685/f0881330-5aa4-11e3-8392-d6c5b1451e2a.png)