Added test for Container.calculateLength