fix test trapping