refactored test/headers.js