split security_test into 3 files