Runmode unittest fix v1.1

Updated PR with a RunUnittests function returning void.