Fixed variable naming

I noticed that it was not possible anymore to disable sending events in development and test mode. After digging into it I found this mix-up of variable names.