Test code refactor #63

Use mocha for feature-specific unit tests

Add test coverage report via istanbul