remove some more test redundancy and restore a missing and important nil check
Lua scripts for engine testing. These scripts are the same as other Lua scriptsin Hedgewars, but you ought to call `EndLuaTest(TEST_SUCCESSFUL)` or`EndLuaTest(TEST_FAILED)` when the test is completed.