Added unit tests after #62 and updated to v1.2.1