Fix a bug about new tests when a file is runned