test code for trigger and response box