Set log level to 'debug' for logging to file.
update npm deps and fix some tests (fix #2287)