Fixed test generation to work with allinone and Ubuntu.