test: add test framework and sanity check.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>