add checks for test mode in initialize and process, allows controller testing via rspec