Fix some tests and put an id to anonymous elements