Add integration testing
Fix failing tests
Merge pull request #7 from redguide/npm-lwrp

Add tests and fix