Check test mode in initialize and process

I was unable to write controller specs without this modification, but perhaps I was missing something?