Switch from test mode to operation mode