linted and cleaned hooks.test.js