Migrate end2end functional tests to RFC8040