move getDepth to Test.java, add to test