Test that button event handler uses correct output types.