made little refactory on response test