Add tests
Fix JSHint errors
Add integration test
Create tests on the fly.
Merge pull request #12 from hazzik/tests

Add tests
Bump version.