Improve TestGetContainersTop so it does not rely on sleep