SES-1923 : Allow testsuite users to override default context

Adds a new protected method that returns null by default, but which can
be overridden by users.