Modified getBoundsInternal to handle 3D CRS and added test case