adds an option to change the default context in the isolated environment
refs #380