test(general): move executable preparation parts fo before function