added test mode to logisim