[WIP] Unit tests

![itshappening](https://f.cloud.github.com/assets/964691/1947469/e0e22e38-8057-11e3-9c57-9827d2ad6dd4.gif)