[HAL Tests] Simplify testing logic