fix tests, add .header tests

1. fix tests
2. about `assert.equal(err.message, msg);`
According to Node.js docs: assert.equal(actual, expected, [message])