tests: test finalization effect

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>