added test to check validation of digest