test for depth calculation