Fixed the PUT test by extending hooks.js.