added error handling for incorrect test names