test: add test utilities

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
api, dao: expose convenient methods

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