Added a method to create the runner depending on it's test types.