added Node API tests

* fixed all tests
* coverage increased from 66.52% to
  75.39%
Merge pull request #18 from tzumainn/api-test

added Node API tests