added tests and coverage

References:

Closes https://github.com/borisdiakur/n_/issues/5
Merge branch 'master' into tests
badges