Disable test mode

Disabled test mode and changed an if to #ifdef