Removed code duplicates in RapidTesting.cpp.

Shall not be afraid. The devil is not so black as he is painted