Many small changes in CDetectorTest

Reading from the InputStream is accelerated by Pause/Next mechanism.
Calculation of the elapsed time changed.
Error with exceeding of the maximum expected number of the artifacts is
fixed.