Call core code directly in the API of run test case