Fix shared header identity priority and frontend test cleanup.