[task] added tests to ensure endpoints are secure