Changing output messages for test-mode.
Moving the initial setup stage for test-mode to the proper place.