Improve exec package interface and tests