Test that header timestamp digest is calculated correctly