added 1 integration test
added spec to npm tests
minor mods