Fix for two e2e tests.

 The head changing test is still not working, because it might be easier by fixing the tree for older chrome versions and other browsers.