Check for undefined libPath
Add error message on missing package.js
Brought a couple of tests up to date.