provision/docker: extract collector tests.

related to #553.