Embedded envelope testing