spec: add unit and integration tests

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>