The request headers exposed to scripts are stored in a case sensitive map, but HTTP headers are case insensitive. This makes it difficult for scripts to work with headers.
Update ScriptedDecisionNode functional test's USER_AGENT_DECISION_SCRIPT to use different case in subsequent runs, all those tests should pass.
The headers can be accessed easily regardless of their case
The test fails on WildFly for example because WildFly stores the headers in exactly the same case as they were sent with.
Update the scripts to iterate through the map and check keys case sensitively.