[Unit Testing] Making code agile.
[Unit Testing] No need for declaring separate variable.
[Unit Testing] Added test that checks code sequence after some generic elasticsearch error occurs.
[Unit Testing] Dead code elimination.
[Unit Testing] Style and wording.
[Unit Testing] Checking result type received.
[Unit Testing] Tested case with connection error occurred with no sniffing after it.
[Bug Fix] Now there will be performing attempts after connection error when no sniffing after it is set.
[Unit Testing] Suppressing mock warnings.