security test code