Fix public & internal networking for tests

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>