add run single test case function