[WiP] Added Jest tests.

While I'm still not convinced [Jest](http://facebook.github.io/jest/) is mature enough yet, let me play around the idea of using it.