another step toward get_value

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Complete the get_value implementation and tests.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>