Working QOM hierarchy and tests.