Refactoring the expection part in verify_message function