Fix typo in boilerplate
Throw instead of warn if script doesn't return a promise; set log level to error if node_env is testing
(in lieu of proper configuration)