Fix ContainerRepositoryTest

- Add explicit check to verify if the saved containers are found
within a specified time (15s).
should add an explicit break after the interrupt so that the loop does not continue