test for setting ivar struct