[tests] Avoid null pointer exception due to weak references on skill's owner.

Signed-off-by: Stéphane Galland <galland@arakhne.org>