fixing test to handle the gsub of the api URI.