cli: injectable command to run in tests
travis: test npm-publish latest and bleedingedge versions
fixes #1106