Add unit tests for depth based comparison