Adding unit tests

https://gist.github.com/piotr-mazurek/5c40e43561498e710ce8