Main program testing functions