Test that order of backends and hierarchy entries are correct