Test running of code in a sub-interpreter
(prelude to issue #6531).