add failing test for tree visibility quirks
fix tests