test trap, shift and condition