test embed() and nested embed calls, use pexpect since these tests are interactive