src+tests: Add missing include and mark expected failures of some tests

Tests are expected to fail because of changes in implicit digest
semantics.

Change-Id: Iecab6dda8a0005d5609b1df21cbc0dd64a80ca47
Refs: #2165