fix CappedCylinder's bounds and add tests