Moved testing code from FOAM.js to demos/Package.js.