Added functionality to allow enabling of test mode from command line when running jar.