Tested the LimitDepth function.