Tartaros: Re-factored test case execution function.