testutils: use idiomatic ternary operator in flow match tests functions