Don't use all-lowercase codes in sdef file as those are reserved by Apple (issue 3213)
The applescript parser couldn't deal with 'current session' having different codes in different contexts. Use the same code whether it's the current session of a window or a tab and update tests.