metadata_scripts.js is generated  by the Makefile, isn't it?  Are there any circumstances where these tests would run without a make having been done first?  Would it make sense to require the files individually?