ISPN-2581 Create unit test for state transfer completion

* Proove that config option StateTransferConfiguration.awaitInitialTransfer()
is honored correctly.
* Removed dead code.
* Log exceptions encountered during command execution as errors