Fixed early test exit problem in Test