Fix randomly failing tests

Signed-off-by: chatgris <julien.boyer@af83.com>