Added Pre/On/PostRenderTest callbacks and ShutDown callback to shapestest source