Added test for 3-level hierapp