This was done automatically using: % sed -i 's,http://build.i3wm.org,https://build.i3wm.org,g' testcases/t/*.t
The problem was that scratchpad_move() didn’t check whether the source workspace was focused. Therefore, 'move scratchpad' only worked reliably interactively , but not when used with criteria.