InfiniteContainer: added tests and fixed functionality

- [] @Aintaer