Consent and declaration test and fixes