api, collector: fix log initialization
provision/docker: improve test for remove