Fix unit tests failure on some configs

Signed-off-by: Snaipe franklinmathieu@gmail.com