added support for running tests with "npm test" command