Added some tests. Version bump 1.0.2