fix(container-manager): Improve tests and ensure promise return.