Test that stubbed proxy doesn't receive 'optimize'