/**
  * Finishes the test
  */
 public function finish()
 {
     try {
         $serviceContext = $this->getServiceContext(false);
         $response = ['success' => $this->runnerService->finish($serviceContext)];
     } catch (common_Exception $e) {
         $response = $this->getErrorResponse($e);
     }
     $this->returnJson($response);
 }