Removed deprecated mock() in favor of double().
Added tests for hidden services.