wire response test harness
refactor regex pattern matching