[lit] Add a test for internal shell execution behaviors.