Test ComputeBoxSum with varying dimensions