style: move all require() to the top of the `test.js` file