[fix] bad test that raise exception instead of returning None