Do not restart docker for unit tests. Replace old docker commands with restart-docker. Use parameter -v for docker rm, which should remove the volume files too.