Yeah, that's rather tricky. You have to call DBMS_SESSION.RESET_PACKAGE from a separate execution block. So you have to do it in two phases and swap the content of your test window until PSD or a plugin can do it for you or someone comes up with a better idea.