Test that body digest is calculated correctly