[#1709] Akash/Faris : Removed unused code and fixed test in api_authentication feature.