Add run method to run tests discovery from other scripts.