refactor test for extensibility

Use a ScriptingContainer with persistent local variables, so we can
re-use the HttpClient instance for additional tests.