added more unit tests

https://gist.github.com/jchrusciel/9797e32e21eb52c4de2d