Add unit tests with coverage

:bowtie: Thanks for your nice module.
I'have started to make some unit test.
For now, it's pretty basic. Not everthing is tested.
And only tested with nodeJs.
There are also coverage % (68.97 %)

```
npm install
npm test
```