Tartaros: Moved test building functions from UI to testrun.py.