Test for protecting setter for digest attribute