adds tests for templateFromNpm