added integration tests,  changed delete api
cleaned up code
Merge pull request #6 from wajam/jn-it-tests

added integration tests,  changed delete api