Add test for max depth option.