add console.log to test panels value passing in middleware