Add test for setting to a compatible struct
Make on_set events work