Added rectangle test Pre/On/PostRenderCallback and shutdown callback