Fix SecurityTest
Add missing waitTask in the test
Reduce the rate to test the keepAlive