[task] added test class to check if endpoints are secured with oauth