running 'npm test' error

I don"t know if it's the good way to do it, but this fixes the bug described in issue #3