Check why my test cases are getting failed in Modular Exponentiation

my code with link:

When b=1 then a^b = a while you are using a base case that b=1 then return 1 which is wrong. Please change your base condition.