Add a test (not run by default) to check that scms work

Build it by doing

make tests

then run it with

./tests/scmtest

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