depth calc and tests