Allow "<>" comparator in depth function.
Add more function tests.