issue #960 save test mode in pipeline