bug fix hierarchy and profile tests with error dependecies