Fixed exception handling inside AsyncBasicDetector classes.
Changed unit test so that it is resistant to Java7 test method reordering.