Improve TestGetContainersTop so it does not rely on sleep

Relates to #1431