Added test for when matchingDepth is lower than depth.