orderref and condition test