Add tests for catalogtree directive