test: fix tests failures

Add missing mock.

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