containers: add test that stopping and starting a container works (#4989)