Area ID 22 indeed belongs to one of the test areas, "Island 3" to be exact.
The other one's ID is 31, called "Test Area".
Your game crashes because those areas aren't loaded normally.
It's easy to do it, just use AreaRegisterAreaScript(AreaCode, "AreaScripts/YourScriptNameHere.lua").
In this case, you want:
AreaRegisterAreaScript(22, "AreaScripts/Island3.lua")