enable api key verify to check for api key claim
updating and fixing tests
stringifying the error in case it is not a string