Introduced relevant tests.
Fixed tests and prepublish script.
v1.0.0