Added test mode selection to software