Message handler testing