Added api security tests