Simple Attack MAI test scenario: move Lua filter function into preload event

… so that it is available after a reload as well.