use correct namespace for table protection elements, fdo#82128

Change-Id: I5b9cb4a76739a0c91597c0470c737439d2b07e4f
add test for fdo#82128

Change-Id: I3dd0005f00c4a861103ffd1a0422b9fc9397f6fb
use scoped_ptr instead of shared_ptr

Change-Id: Ic814a2301aaf6e57aa8ca04b837acafb6e4f4566