Fixed NewUrlListener to pass tests