alter ajax call to be more flexible when testing