update .gitignore
changed command "npm test" - added options "check-leaks"; fixed global var leaks in tests
Merge pull request #13 from yarikos/master

Added leaks checks to test command; fixed leaks in tests